package com.qf.java2201.dto;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeExcelDto {

    @ExcelProperty("编号")
    private Integer notice_id;

    @ExcelProperty(value = "发布人员")
    private String rele;

   @ExcelProperty(value = "标题")
    private String rele_title;

    @ExcelProperty(value = "公告内容")
    private String content;

   @ExcelProperty(value = "发布日期")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd")
   @DateTimeFormat("yyyy-MM-dd")
    private Date rele_time;
}
